CREATE TABLE [dbo].[TDPARA_GRUP]
(
[CO_GRUP] [dbo].[TD_VC_008] NOT NULL,
[ST_NIVE_COEM] [dbo].[TD_VC_001] NULL,
[ST_NIVE_ORGA] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_SEGU] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_SEDE] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_AREA] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_ARSE] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_MAST] [dbo].[TD_VC_001_SINO] NULL,
[ST_NIVE_SOLO] [dbo].[TD_VC_001_SINO] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDPARA_GR__CO_US__20C1E124] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDPARA_GR__FE_US__21B6055D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDPARA_GR__CO_US__22AA2996] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDPARA_GR__FE_US__239E4DCF] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1A14E395] CHECK NOT FOR REPLICATION (([ST_NIVE_ORGA]='N' OR [ST_NIVE_ORGA]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1B0907CE] CHECK NOT FOR REPLICATION (([ST_NIVE_SEGU]='N' OR [ST_NIVE_SEGU]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1BFD2C07] CHECK NOT FOR REPLICATION (([ST_NIVE_SEDE]='N' OR [ST_NIVE_SEDE]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1CF15040] CHECK NOT FOR REPLICATION (([ST_NIVE_AREA]='N' OR [ST_NIVE_AREA]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1DE57479] CHECK NOT FOR REPLICATION (([ST_NIVE_ARSE]='N' OR [ST_NIVE_ARSE]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1ED998B2] CHECK NOT FOR REPLICATION (([ST_NIVE_MAST]='N' OR [ST_NIVE_MAST]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] WITH NOCHECK ADD CONSTRAINT [CK__TDPARA_GR__ST_NI__1FCDBCEB] CHECK NOT FOR REPLICATION (([ST_NIVE_SOLO]='N' OR [ST_NIVE_SOLO]='S'))
GO
ALTER TABLE [dbo].[TDPARA_GRUP] ADD CONSTRAINT [PK__TDPARA_G__CCFAA75D5DEAEAF5] PRIMARY KEY CLUSTERED  ([CO_GRUP]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[TDPARA_GRUP] TO [public]
GRANT INSERT ON  [dbo].[TDPARA_GRUP] TO [public]
GRANT DELETE ON  [dbo].[TDPARA_GRUP] TO [public]
GRANT UPDATE ON  [dbo].[TDPARA_GRUP] TO [public]
GO
